package com.gongj.event;

import org.springframework.context.ApplicationEvent;

public class SendEvent extends ApplicationEvent {

	private static final long serialVersionUID = 7099057708183571936L;

	String userInfo;


	/**
	 * Create a new {@code ApplicationEvent}.
	 *
	 * @param source the object on which the event initially occurred or with
	 *               which the event is associated (never {@code null})
	 */
	public SendEvent(Object source) {
		super(source);
	}

	public SendEvent(Object source, String userInfo) {
		super(source);
		this.userInfo = userInfo;
	}

	//获得用户信息
	public String getUserInfo(){
		return userInfo;
	}

}
